﻿// <copyright file="RelationCharacterSkill.cs" company="Gravity Age Studios">
// Code released under the MIT license (see License.txt).
// </copyright>
// <author>Vicente Cartas Espinel</author>
// <email>vicente.cartas@gmail.com</email>
namespace LightSwitchApplication
{
    public partial class RelationCharacterSkill
    {
        #region Summary

        partial void Summary_Compute(ref string result)
        {
            if (this.Skill != null)
            {
                if (this.Level >= 0)
                {
                    result = string.Format("{0} +{1}", this.Skill.Abbreviation, this.Level);
                }
                else
                {
                    result = string.Format("{0} {1}", this.Skill.Abbreviation, this.Level);
                }
            }
        }

        #endregion
    }
}
